package com.lagou.edu.pojo;

/**
 * @ClassName BeanWrapper
 * @Description TODO
 * @Author cgengwei
 * @Date 2020/12/24 10:08
 * @Version V1.0
 **/
public class BeanWrapper {

    //真是类
    private Object instance;

    //代理对象
    private Object proxyInstance;

    //类
    private Class aClass;

    private boolean havePopulateBean = false;

    public BeanWrapper() {
    }

    public BeanWrapper(Object instance, Object proxyInstance, Class aClass) {
        this.instance = instance;
        this.proxyInstance = proxyInstance;
        this.aClass = aClass;
    }

    public Object getInstance() {
        return instance;
    }

    public void setInstance(Object instance) {
        this.instance = instance;
    }

    public Object getProxyInstance() {
        return proxyInstance;
    }

    public void setProxyInstance(Object proxyInstance) {
        this.proxyInstance = proxyInstance;
    }

    public Class getaClass() {
        return aClass;
    }

    public void setaClass(Class aClass) {
        this.aClass = aClass;
    }

    public void updateHavePopulateBean(){
        this.havePopulateBean = true;
    }

    public boolean isHavePopulateBean() {
        return havePopulateBean;
    }
}
